﻿using Microsoft.Extensions.DependencyInjection;

namespace HardStyle.SimpleEventBus
{
    public class SimpleEventBusServiceConfiguration : SimpleEventBusConfiguration
    {
        /// <summary>
        /// 注册服务的生命周期,默认为单例
        /// </summary>
        public ServiceLifetime Lifetime { get; set; } = ServiceLifetime.Singleton;
        public SimpleEventBusServiceConfiguration()
        {
            SupportDependencyInjection = true;
        }
    }
}
